﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

namespace DEMO.WCF_API.Contracts
{
    [ServiceContract]
    public interface IEXMessageContract
    {
        [OperationContract]
        DEMO.WCF_API.Contracts.EXMessageContract getEmployees(DEMO.WCF_API.Contracts.EXMessageContract oEXMessageContract);
    }
    [MessageContract]
    public class EXMessageContract
    {

        [MessageHeader(ProtectionLevel = System.Net.Security.ProtectionLevel.EncryptAndSign)]
        public string Key { get; set; }
        [MessageBodyMember(ProtectionLevel = System.Net.Security.ProtectionLevel.None)]
        public Employee oEmployee { get; set; }
        [MessageBodyMember(ProtectionLevel = System.Net.Security.ProtectionLevel.EncryptAndSign)]
        public string Password { get; set; }
    }
}
